<?php
namespace app\Model;

use Illuminate\Database\Eloquent\Model;

class GoodsMaster extends Model
{

    // 设置表名NAME="goods_master";
    // 设置表名
    /*const TABLE_NAME = "goods_master";

    protected $goods_master = 'goods_master';

    protected $primaryKey = 'goods_id';

    protected $GoodsMaster = self::TABLE_NAME;

    public $timestamps = false;

    public function addGoodsMaster($data) // 增
    {
        return DB::table('goods_master')->insert($data);
    }*/

    public $goods_id;
    public $goods_code;
    public $goods_name;
    public $goods_kana;
    public $category_id;
    public $price;
    public $jancode;
    public $start_date;
    public $end_date;
    public $supplier_id;
    public $money_type;
    public $supply_price;
    public $new_flg;
    public $top_show_flg;
    public $web_open;
    public $color;
    public $size;
    public $model;
    public $min_lot;
}
